package com.domain;

/**
 * @BelongsPackage: com.hq1.javaweb.domain
 * @Author: jiangjunjie
 * @CreateTime: 2025-02-17  23:40
 * @Description: TODO
 * @Version: 1.8
 */
public class User {
    private int id;
    private String username;
    private String userpassword;
    private int age;
    private String sex;

    public User() {

    }

    public User(int id, String username, String userpassword, int age) {
        this.id = id;
        this.username = username;
        this.userpassword = userpassword;
        this.age = age;
        this.sex = sex;
    }

    public User(String username, String userpassword, int i) {
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpassword() {
        return userpassword;
    }

    public void setUserpassword(String userpassword) {
        this.userpassword = userpassword;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", userpassword='" + userpassword + '\'' +
                ", age=" + age +
                '}';
    }
}
